package com.binvshe.binvshe.app.home;

import com.binvshe.binvshe.account.AccountManager;
import com.binvshe.binvshe.common.http.MyHttpRequest;
import com.binvshe.binvshe.common.http.UrlCenter;
import com.pachong.android.baseuicomponent.CompState;
import com.pachong.android.framework.httprequest.IHttpRequest;
import com.pachong.android.framework.httprequest.UrlParams;

/**
 * Created by Zoi.
 * E-mail：KyluZoi@gmail.com
 * 2017/2/3
 */

public class FollowOpusFragment extends BaseOpusFragment {
    @Override
    protected void loadData() {
        if(AccountManager.getCurrentAccount()==null){
            setState(CompState.EMPTY);

        }else{
            String url = UrlCenter.HOME_FOLLOW;
            IHttpRequest request = new MyHttpRequest(getContext());
            UrlParams params = new UrlParams();
            params.put("size", PAGE_SIZE + "");
            params.put("last_id", mlastid + "");
            request.get(url, params, mRequestListener);

        }

    }

}
